package com.stujyh;

public class Test {
    public static void main(String[] args) throws Exception {
        Weapon tank = WeaponFactory.getWeapon("Tank");
        tank.attack();
        Weapon gun = WeaponFactory.getWeapon("Gun");
        gun.attack();
    }
}
